package me.shep.wishlist.client;

import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;
//TODO:  need to add token timeout, null checking, etc
public class Person implements IsSerializable {
	public int id;
	public String name;
	public String email;
	public String token;
	public List<DesiredItem> desiredItems;
	public List<DesiredItem> getDesiredItems() {
		return desiredItems;
	}
	public void setDesiredItems(List<DesiredItem> desiredItems) {
		this.desiredItems = desiredItems;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
}

/*
CREATE TABLE `people` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(80) NOT NULL,
  `email` varchar(80) NOT NULL,  
  `token` varchar(100) NULL, 
  PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

*/